package xml;

import java.util.ArrayList;
import java.util.List;

public class Dept {
	private int id;

	private String deptname;

	private String mgr;

	private String establishtime;

	private List<Emp> empList = new ArrayList<Emp>();

	public Dept(int id, String deptname, String mgr, String establishtime,
			List<Emp> empList) {
		this.id = id;
		this.deptname = deptname;
		this.mgr = mgr;
		this.establishtime = establishtime;
		this.empList = empList;
	}

	public String getDeptname() {
		return deptname;
	}

	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}

	public List<Emp> getEmpList() {
		return empList;
	}

	public void setEmpList(List<Emp> empList) {
		this.empList = empList;
	}

	public String getEstablishtime() {
		return establishtime;
	}

	public void setEstablishtime(String establishtime) {
		this.establishtime = establishtime;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMgr() {
		return mgr;
	}

	public void setMgr(String mgr) {
		this.mgr = mgr;
	}

	public Dept() {

	}

	@Override
	public String toString() {
		return deptname+","+id+","+mgr+","+establishtime;
	}

}
